package com.erb.mapper;

import com.erb.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by MoYao on 2020/6/10.
 */
public interface PersonalMapper {
	Integer infcount(@Param("informRecipientsId") Integer informRecipientsId, @Param("readed") Integer readed);

	Thirdparty thisel(Integer uid);

	Integer investsel(Integer uid);

	Integer investsel2(Integer uid);

	Map userinvest(Integer uid);

	Map userinvest2(Integer uid);

	Integer invest2count(@Param("uid") Integer uid, @Param("tkey") Integer tkey, @Param("date1") String date1, @Param("date2") String date2);

	List<Invest> invest2page(@Param("startRow") Integer startRow, @Param("pageSize") Integer pageSize, @Param("uid") Integer uid, @Param("tkey") Integer tkey, @Param("date1") String date1, @Param("date2") String date2);

	Integer investcount(Integer uid);

	List<Invest> investpage(@Param("startRow") Integer startRow, @Param("pageSize") Integer pageSize, @Param("uid") Integer uid);

	List<Invest> investlist(Integer uid);

	Integer userupds(@Param("id") Integer id, @Param("face") String face);

	Integer nameupd(@Param("id") Integer id, @Param("name") String name);

	Map suminvestment(Integer id);

	Map sumprofit(Integer id);

	Map sumsinvestment(Integer id);

	Integer investcounts(@Param("uid") Integer uid, @Param("status") Integer status);

	List<Invest> investpages(@Param("startRow") Integer startRow, @Param("pageSize") Integer pageSize, @Param("uid") Integer uid, @Param("status") Integer status);

	void investupd(Integer id);

	void thiadd(Thirdparty thirdparty);

	void usersupd(@Param("id") Integer id, @Param("sex") String sex);

	Thirdparty thisels(@Param("uid") Integer uid, @Param("pwd") Integer pwd);

	User usersel(Integer id);

	void userupd(@Param("id") Integer id, @Param("balance") double balance);

	List<Bankcard> banlist(Integer uid);

	Integer banadd(Bankcard bankcard);

	void capadd(CapitalLog capitalLog);

	Redenvelopes redsel(String exchangeCode);

	Redpacketrecord redpsel(@Param("uid") Integer uid, @Param("exchangeCode") String exchangeCode);

	String reddate(String exchangeCode);

	void redpadd(Redpacketrecord redpacketrecord);

	Integer redpcount(@Param("uid") Integer uid, @Param("state") Integer state);

	List<Redpacketrecord> redppage(@Param("startRow") Integer startRow, @Param("pageSize") Integer pageSize, @Param("uid") Integer uid, @Param("state") Integer state);

	List<Redpacketrecord> redpalist();

	void redpupd(@Param("id") Integer id, @Param("state") Integer state);

	List<Inform> infpage(@Param("startRow") Integer startRow, @Param("pageSize") Integer pageSize, @Param("informRecipientsId") Integer informRecipientsId, @Param("readed") Integer readed);

	Inform infrsel(@Param("informId") Integer informId, @Param("informRecipientsId") Integer informRecipientsId);

	void infupd(@Param("informId") Integer informId, @Param("readed") boolean readed);

	List<User> userlist();

	void modupd(@Param("id") Integer id, @Param("modificationTime") Integer modificationTime);
}
